Skip to content

Cherry-pick #25272 to 7.13: [Testing] 7.x Disable geoip downloader#25275

Merged
andrewkroh merged 1 commit intoelastic:7.13from
andrewkroh:backport_25272_7.13
Apr 23, 2021
Merged

Cherry-pick #25272 to 7.13: [Testing] 7.x Disable geoip downloader#25275
andrewkroh merged 1 commit intoelastic:7.13from
andrewkroh:backport_25272_7.13

Conversation

@andrewkroh
Copy link
Copy Markdown
Member

@andrewkroh andrewkroh commented Apr 23, 2021

Cherry-pick of PR #25272 to 7.13 branch. Original message:

This is the same change as #25248 but not automated b/c the branches differ in that golden files don't need updated in 7.x. Once 7.14.0-SNAPSHOT is ready #25192 will update them, but for now use 7.13.0-SNAPSHOT of the stack.

What does this PR do?

Disable database updates via an Elasticsearch property ingest.geoip.downloader.enabled: false. This will cause Elasticsearch to use the circa 2019 maxmind database version that is embedded. This would work for now, but the embedded database will be removed in 8.x IIUC.

Closes: #25159

Why is it important?

This prevents our golden file tests from failing everytime the database changes geo or asn values. It also prevents race conditions in tests that might run before the database has been updated or in cases where the downloader service is unavailable.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

Disable database updates via an Elasticsearch property ingest.geoip.downloader.enabled: false. This will cause Elasticsearch to use the circa 2019 maxmind database version that is embedded. This would work for now, but the embedded database will be removed in 8.x IIUC.

This prevents our golden file tests from failing everytime the database changes geo or asn values. It also prevents race conditions in tests that might run before the database has been updated or in cases where the downloader service is unavailable.

Closes: elastic#25159
(cherry picked from commit 3b4b10e)
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 23, 2021
@botelastic
Copy link
Copy Markdown

botelastic Bot commented Apr 23, 2021

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #25275 opened

  • Start Time: 2021-04-23T14:39:28.451+0000

  • Duration: 107 min 27 sec

  • Commit: 8b4e927

Test stats 🧪

Test Results
Failed 0
Passed 47171
Skipped 5190
Total 52361

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 47171
Skipped 5190
Total 52361

@andrewkroh andrewkroh merged commit 02f32c4 into elastic:7.13 Apr 23, 2021
@andrewkroh andrewkroh deleted the backport_25272_7.13 branch January 14, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport needs_team Indicates that the issue/PR needs a Team:* label review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants